﻿<%@ Page Language="C#" CodeFile="FlowLink.aspx.cs" Inherits="WebPubManager_FlowLink" %>

<%@ Import Namespace="System.Data" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>更多信息</title>
    <link href="../css/page.css" rel="Stylesheet" type="text/css" />
</head>
<script type="text/javascript">
    function OpenNewAdd()
    {
        window.location.href="../WebPubManager/FlowLinkEdit.aspx?flowid=<%=Request["flowid"]%>&datatype=<%=Request["datatype"]%>";
    }

</script>
<body>
    <form id="Form1" runat="server">
    <div style="text-align: center">
        <div style="text-align: right">
            <input id="btnAddForms" type="button" onclick="OpenNewAdd()" class="NewButton" value="新增" />
        </div>
        <controlDefine:CustomGridView ID="gvFlows" runat="server" AllowPaging="false" Width="100%"
            HideTextLength="30" DivFstClass-DivButtonClass="input" AutoGenerateColumns="false"
            DivScdClass-DivButtonClass="input" DivTrdClass-DivButtonClass="input" ShowCmpAndCancel="False"
            AllowOnMouseOverEvent="False" ShowItemNumber="false" AutoGenerateDeleteConfirm="True"
            CustomSortExpression="" AllowSortingAscImgCss="" AllowSortingDescImgCss="" ShowHideColModel="None"
            EmptyDataText="" OnRowCreated="gridviewCar_RowCreated" OnOnLoadData="recvgrid_OnLoadData">
            <PagerSettings Visible="False" />
            <Columns>
                <asp:BoundField HeaderText="ID" DataField="ID" Visible="false" />
                <asp:BoundField HeaderText="序号" DataField="rownum" />
                <asp:TemplateField HeaderText="标题">
                    <ItemTemplate>
                        <a href='<%# Eval("LINKEHREF") %>' target="_blank">
                            <%# Eval("title") %></a>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="图片预览">
                    <ItemTemplate>
                        <%#GetImage(Container)%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="编辑">
                    <ItemTemplate>
                        <a href='../WebPubManager/FlowLinkEdit.aspx?id=<%# Eval("id") %>&datatype=<%# Request["datatype"]%>&flowid=<%# Request["flowid"]%>'
                            target="_self">编辑</a>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="删除">
                    <ItemTemplate>
                        <a href='../WebPubManager/FlowLink.aspx?type=delete&id=<%# Eval("id") %>&datatype=<%# Request["datatype"]%>&flowid=<%# Request["flowid"]%>'
                            target="_self">删除</a>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </controlDefine:CustomGridView>
    </div>
    </form>
</body>
</html>
